how to calculate motor current